
/**
 * Contains information about a single monster here.
 * 
 * @author Leander & Laurens
 * @version 6-1-2014
 */
public class Monster extends Character
{
    // instance variables - replace the example below with your own
    protected int damage;
    protected String onAppearSound;
    protected String onDefeatSound;

    /**
     * Constructor for objects of class Monster
     * @param name The name of the monster
     * @param health The amount of health this monster has
     * @param startRoom The room to spawn this monster in
     * @param damage The amount of damage this monster does
     * @param onAppearSound Location of the sound to be played when the monster appears
     * @param onDefeatSound Location of the sound to be played when the monster is defeated
     */
    public Monster(String name, int health, Room startRoom, int damage, String onAppearSound, String onDefeatSound)
    {
        super(name, health, startRoom);
        this.damage = damage;
        this.onAppearSound = onAppearSound;
        this.onDefeatSound = onDefeatSound;
    }

    /**
     * Returns the location of the sound to be played when the monster appears
     */
    public String getOnAppearSound()
    {
        return this.onAppearSound;
    }
    
    /**
     * Returns the location of the sound to be played when the monster is defeated
     */
    public String getOnDefeatSound()
    {
        return this.onDefeatSound;
    }
    
    /**
     * Get the amount of damage this monster does.
     */
    public int getDamage()
    {
        return damage;
    }
}
